﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Entity.Use
{
    ///<summary>
    ///用户关系表
    ///</summary>
    [SugarTable("use_user_relation")]
    public partial class UseUserRelation
    {
        public UseUserRelation()
        {
        }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }    

        /// <summary>
        /// 祖先用户
        /// </summary>
        public long Ancestor { get; set; }

        /// <summary>
        /// 后代用户
        /// </summary>
        public long Descendant { get; set; }

        /// <summary>
        /// 代数
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsOnlyIgnoreInsert = true)]
        public DateTime CreateTime { get; set; }
    }
}
